import { createWebHistory , createRouter } from 'vue-router'

import HomeView from '../components/home/main.vue'
import article from '../components/article/single.vue'
import News from '../components/news.vue'
import Download from '../components/download.vue'

const routes = [
  { path: '/', component: HomeView },
  { path: '/article/:id', component: article },
  { path: '/news', component: News },
  { path: '/download', component: Download },
]

const router = createRouter({
  history: createWebHistory (),
  routes,
})

export default router